package com.test.notNull;

/**
 * @author zhuangqi
 * @date 2017/6/7.
 */
public class MyParser implements Parser{

    private static Action DO_NOTHING = new Action() {
        public void doSomething() {
            System.out.println("This is DO_NOTHING");
        }
    };

    @Override
    public Action findAction(String userInput) {
        return DO_NOTHING;
    }

    public static void main(String[] args) {

        MyParser parser = new MyParser();
        parser.findAction(null).doSomething();

    }

}
